package com.nasa.sentinel.nacos;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * <p>sentinel nacos config properties</p >
 *
 * @author youyoukele
 * @version 1.0
 * @date 2021/10/12
 */
@Data
@RefreshScope
@ConfigurationProperties(SentinelNacosConfigProperties.PREFIX)
public class SentinelNacosConfigProperties {

    /**
     * Prefix of {@link SentinelNacosConfigProperties}.
     */
    public static final String PREFIX = "nasa.sentinel.nacos.config";

    /**
     * nacos config server address.
     */
    private String serverAddr;

    /**
     * namespace, separation configuration of different environments.
     */
    private String namespace;

    /**
     * nacos config group, group is config data meta info.
     */
    private String group;

    /**
     * nacos config data id
     */
    private String dataId;

    /**
     * block tipcs
     */
    private String blockTips;

}
